package org.blogwu.learn.designpattern.chapter16.v2;

public class Main {
    public static void main(String[] args) {
        Printable p = new PrintProxy("SB");
        System.out.println("现在的名字是：" + p.getPrinterName() + ".");
        p.setPrintName("Bob");
        System.out.println("现在的名字是：" + p.getPrinterName() + ".");
        p.print("Hello,World");
    }
}
